#!/bin/bash

TEST="test"
DEMO="demo"

while [ -n "$1" ]; do
    case "$1" in
    "--run")
        echo "this is --run $1"
        if [ -d $TEST ];then
            echo "$TEST exiting"
        fi
        ;;
    "--dev")
        echo "this is --dev $1"
        if [ ! -d $DEMO ];then
            echo "$DEMO is not exiting"
        fi
        ;;
    "--build")
        echo "this is --build $1"
        ;;
    *)
        echo "hello kugou"
        ;;
    esac
    shift
done

read -p "请输入第一个数：" num1
read -p "请输入第二个数：" num2

sum=$((num1+num2))
echo "这两个数的和为$sum"